<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<jsp:include page="/WEB-INF/views/commons/center_top.jsp"/>
<link rel="stylesheet" href="/static/css/info.css" />
<div class="contBox clear">
<div class="col-sm-6 no-padding">
	<div class="widget-box">
		<div class="widget-header header-color-blue">
			<span>角色列表</span>
			<div class="widget-toolbar no-border">
				<div class="btn-group">
					<button class="btn btn-info btn-sm" data-title="添加按钮" id="grid_btn_add"><span class="icon-plus-sign"></span>添加</button>
					<button class="btn btn-info btn-sm" id="del_grid-table"><span class="icon-trash"></span>删除</button>
					<button class="btn btn-info btn-sm" id="roleBind" data-title="角色绑定" data-url="/system/role/roleBind.do" data-width="1200" data-height="800"><span class="icon-pencil"></span>角色绑定</button>
					<button class="btn btn-info btn-sm" id="roleMenu" data-title="权限菜单" data-url="roleMenu.do" data-width="1600" data-height="800"><span class="icon-pencil"></span>权限菜单</button>
				</div>
			</div>
		</div>
		<div class="widget-body">
			<table id="role-table"></table>
			<div id="role-pager"></div>
		</div>
	</div>
</div>
<div class="col-sm-6 no-padding-right">
	<div class="widget-box">
		<div class="widget-header header-color-blue">
			<span><s:message code="roleMannager"/></span>
			<div class="widget-toolbar no-border">
				<div class="btn-group">
					<button class="btn btn-${btn_color} btn-sm" id="roleSave">
						<i class="icon-save bigger-150"></i>
						<s:message code="save"/>
					</button>
				</div>
			</div>
		</div>
		<div class="widget-body">
			<div class="widget-main padding-8">
				<div id="tree_info" class="tree-unselectable clear">
					<form class="form-horizontal" role="form" id="validForm">
						<input name="id" id="id" type="hidden" value=""/>
						<div class="form-group col-sm-12">
							<label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 角色名称 </label>
							<div class="col-sm-10">
								<input name="name" id="name" class="col-xs-10 col-sm-9 required" type="text" placeholder="角色名称">
							</div>
						</div>
						<div class="form-group col-sm-12">
							<label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 备注 </label>
							<div class="col-sm-10">
								<input name="mark" id="mark" class="col-xs-10 col-sm-9" type="text" placeholder="备注">
							</div>
						</div>
						<div class="form-group col-sm-12">
							<label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 所属部门  </label>
							<div class="col-sm-10">
								<div class="input-group col-xs-10 col-sm-9 no-padding">
									<input name="dept.id" id="deptId" class="required" type="hidden">
									<input id="deptName" name="dept.name" readonly="readonly" class="form-control required" type="text" placeholder="所属部门">
									<span class="input-group-btn" id="menuBtn">
										<a id="subjectButton" href="javascript:" class="btn btn-primary btn-sm dropdown-toggle   "> <span class="caret"></span></a>
								 	</span>
								 	<div id="menuContent" class="menuContent col-xs-10 col-sm-9 no-padding" style="display:none; position: absolute;">
										<ul id="deptTree" class="ztree" style="margin-top:0;"></ul>
									</div>
								</div>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
</div>
<script type="text/javascript" src="/static/module/system//role/index.js"></script>
<jsp:include page="/WEB-INF/views/commons/center_bottom.jsp"/>